package com.generator.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import lombok.Data;
import lombok.ToString;

@Component
@PropertySource("classpath:config.properties")
@Data
@ToString
public class ContextConfig {
	@Value("${author}")
	private String author;
	@Value("${enableHoleApp}")
	private boolean enableHoleApp;
	
	@Value("${driverClassName}")
	private String driverClassName;
	@Value("${url}")
	private String url;
	@Value("${user}")
	private String user;
	@Value("${password}")
	private String password;
	@Value("${db}")
	private String db;
	@Value("${tableName}")
	private String tableName;
	
	@Value("${entityName}")
	private String entityName;
	@Value("${basePackage}")
	private String basePackage;
	@Value("${codeDirPath}")
	private String codeDirPath;
	@Value("${projectName}")
	private String projectName;
	@Value("${codePath}")
	private String codePath;
	@Value("${mapperPath}")
	private String mapperPath;
	
	
	@Value("${modelFlag}")
	private boolean modelFlag;
	@Value("${mapperFlag}")
	private boolean mapperFlag;
	@Value("${mapperXmlFlag}")
	private boolean mapperXmlFlag;
	@Value("${serviceFlag}")
	private boolean serviceFlag;
	@Value("${serviceImplFlag}")
	private boolean serviceImplFlag;
	@Value("${controlFlag}")
	private boolean controlFlag;
}
